@startuml

{{#each tables ~}}
    class {{name}} <<(T,orchid) {{#if status.comment}}{{status.comment}}{{else}}{{/if}}>> {

    {{~#each columns}}
    {{#if ../withType}} {{this.sqlType}} {{this.field}} {{else}} {{this.field}} {{/if}}
    {{~#if ../withComment and this.comment ~}} : {{this.comment}} {{/if}}
    {{~/each}}
}

{{/each ~}}
@enduml